WP_Defender\Component\Firewall A

Total Complexity 72
Dependencies 10
Dependents 6
Total lines 460
Lines of code 250
Logical lines of code 109
Comment lines 131
Methods 22
Properties 0

Methods 22

Method Rating Maintainability Complexity Lines of code
skip_priority_lockout_checks()
A
54 9 21
get_blocked_ip()
S
53 7 24
is_a_staff_access()
S
57 7 16
is_blocklisted_ip()
S
51 5 30
gather_ips()
S
52 5 26
is_cloudflare_request()
S
62 5 12
maybe_show_misconfigured_ip_detection_option_notice()
S
62 5 11
auto_switch_ip_detection_option()
S
58 4 15
is_commencing_staff_access()
S
68 4 6
firewall_clean_up_lockout()
S
54 2 23
is_authenticated_staff_access()
S
78 2 3
update_cron_schedule_interval()
S
70 2 6
update_trusted_proxy_preset_ips()
S
67 2 8
firewall_clean_up_temporary_ip_blocklist()
S
69 2 7
is_xff_notice_ready()
S
76 2 4
is_cf_notice_ready()
S
76 2 4
firewall_clean_up_logs()
S
63 2 10
get_lockout_record_limit()
S
79 1 3
is_switched_ip_detection_notice()
S
79 1 3
delete_slugs()
S
71 1 6
custom_http_headers()
S
71 1 7
trusted_proxy_presets()
S
72 1 5